.ProseMirror {
    outline: none;
    min-height: 300px;
    font-size: 16px;
    padding: 10px;
    //caret-color: #68cef8;
    .ProseMirror-gapcursor {
        margin-top: 10px;
        margin-bottom: 10px;
        &:after {
            color: #68cef8 !important;
            border-top: 3px solid !important;
        }
    }

    > * + * {
        margin-top: 0.75em;
    }

    ul, ol {
        padding: 0 1rem;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    h1, h2, h3 {
        line-height: 1.1;
    }

    code {
        tab-size: 2;
        background: #282c34;
        color: #abb2bf;
        padding: 2px 4px;
        border-radius: 3px;
    }

    pre {
        font-family: monospace;
        tab-size: 2;
        background: #282c34;
        color: #abb2bf;
        padding: 0.75em 1em;
        border-radius: 5px;
        white-space: pre !important;
        code {
            white-space: pre !important;
            color: inherit;
            padding: 0;
            background: none;
            border-radius: 0;
        }
        &::-webkit-scrollbar {
            display: inline-block;
        }
        &::-webkit-scrollbar-thumb {
            background-color: #bfbfbf;
            border-radius: 16px;
            border: 3.5px solid transparent;
            background-clip: content-box;
            visibility: visible;
        }
    }

    img {
        max-width: 100%;
        height: auto;
    }

    hr {
        margin: 1rem 0;
    }

    blockquote {
        padding-left: 1rem;
        border-left: 2px solid rgba(#0D0D0D, 0.1);
    }

    .ProseMirror-selectednode {
        outline: 3px solid #68cef8;
    }

    .img-control {
        position: relative;
        .resize {
            position: absolute;
            right: -30px;
            top: 0;
            bottom: 0;
            width: 90px;
            cursor: ew-resize;
        }
    }

    p.is-editor-empty:first-child::before {
        color: #adb5bd;
        content: attr(data-placeholder);
        float: left;
        height: 0;
        pointer-events: none;
    }
}

.ProseMirror[contenteditable="false"] { // 代码块语言选择开/关
    .select-language {
        display: none !important;
    }
    .ProseMirror-selectednode {
        outline: none;
    }
}